package com.example.service;

import com.example.result.ReturnResult;
import com.example.vo.PartCreateFormVO;
import com.example.vo.PartQueryParamVO;
import com.example.vo.PartQueryResultVO;
import com.example.vo.PartUpdateAndCheckinFormVO;

import java.util.List;

public interface IPartService {
    ReturnResult createPart(PartCreateFormVO partCreateFormVO);
    ReturnResult getEnum(String name);
    ReturnResult getClassificationChildrenNodeByParams(String parentId, Boolean enable);
    ReturnResult getOneLevelClassificationCatalogue(boolean enable);
    ReturnResult query(PartQueryParamVO partQueryParamVO);
    ReturnResult getCategoryNodeInfo(String id);
    ReturnResult checkoutPart(Long masterId);
    ReturnResult undoCheckout(Long num);
    ReturnResult updateAndCheckinPart(PartUpdateAndCheckinFormVO o);
    ReturnResult delete(String partId);

    List<PartQueryResultVO> queryByVersionId(Long versionId);
}
